<template>
    <div>
        <span>{{msg}}：{{count}}</span>
        <br/>
        <button @click="plusHandler">加10分</button>
    </div>
</template>

<script>
    export default {
        name: "emit-child",
        // props: ['msg', 'count'],
        props: {
            msg: String,
            count: Number
        },
        methods: {
            plusHandler() {
                this.$emit('click', 10)
            }
        }
    }
</script>

<style scoped>

</style>
